#ifndef CLAVECHAR_H_
#define CLAVECHAR_H_

#include "../Clave.h"
#include "../includes.h"

namespace Toolkit
{

class ClaveChar : public Clave
{
public:
	ClaveChar (const char &unCaracter);
	virtual ~ClaveChar();
	
	virtual void serializar(stringstream&) const;

    virtual void hidratar(stringstream &);
    
    virtual bool operator == (const Clave&) const;
    virtual bool operator == (const Dato&) const;
    virtual bool operator < (const Clave &) const;
    virtual bool operator < (const Dato &) const;    
    
    virtual Clave* clonar() const;
    
    char getCaracter() const;
    void setCaracter(const char &unCaracter);
    unsigned long int getTamanoSerializacion() const;

    virtual Clave* crearDesdeDato(const Dato&) const;

private:
	char caracter;
	
};

}

#endif /*CLAVECHAR_H_*/
